package cn.cdliux.spring.beans.factory.support;


import cn.cdliux.spring.beans.BeansException;
import cn.cdliux.spring.beans.factory.config.BeanDefinition;

import java.lang.reflect.Constructor;

/**
 * 实例化策略
 * @author liuxiang
 */
public interface InstantiationStrategy {
    Object instantiate(BeanDefinition beanDefinition, String beanName, Constructor ctor, Object[] args) throws BeansException;
}
